-
Notifications
You must be signed in to change notification settings - Fork 137
Add loadtest sendV2
#1331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add loadtest sendV2
#1331
Conversation
4054555 to
fd3390e
Compare
Pull Request Test Coverage Report for Build 13240248514Details
💛 - Coveralls |
fd3390e to
84cb596
Compare
|
Rebased on |
guggero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question/concern about repeatability of this test, other than that looks good to me.
itest/loadtest/send_test.go
Outdated
|
|
||
| // Let's make sure Bob is aware of all the assets that Alice may have | ||
| // minted. | ||
| itest.SyncUniverses(ctx, t, bob, alice, uniHost, cfg.TestTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we probably have to add a new parameter to this function that allows us to sync transfer proofs as well.
When I ran this test a second time after running 1 mintV2 and 1 sendV2 test, this sync never completed, because it only tried syncing issuance proofs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't run into this on my tests, the sync here is done for Bob to be able to create addresses for an asset he may not be aware of yet.
About transfer proofs, I believe both universes are in sync as the proof courier option takes care of that.
I did add a new commit that allows specifying a sync mode on itest.SyncUniverses and converted this call to a full-sync
af0ace6 to
48fd69f
Compare
|
Lit PR that updates to this latest commit of tapd |
We could make it a functional option to not break other code... |
48fd69f to
42d2fd8
Compare
guggero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK, LGTM 🎉
42d2fd8 to
09448fc
Compare
This commit adds a refactored version of the send test, which uses less assertions and rpc calls. This is meant to speed things up compared to the old test, plus offer some more coverage by utilizing normal assets and balances greater than 1 (case for collectibles).
09448fc to
642ec6f
Compare
Based on #1285
This PR adds the last 2 commits.
Description
This PR adds a new refactored send test for our loadtest suite, `sendV2.
The new send test uses normal assets which may have balances greater than
1(case for collectibles), which offers a bit more coverage for our code (coin selection, psbt signing, etc).Compared to the original send test, we strip away any non-mandatory assertions and RPC calls, keeping them to the minimum required to make things happen.